﻿namespace Hx.Infrastructure.Common
{
    public class CommonResult<TEntity>
    {
        public bool Result { get; set; }
        public TEntity ResultEntity { get; set; }
        public string Message { get; set; }

        public static implicit operator bool(CommonResult<TEntity> left)
        {
            return left.Result;
        }
    }
}
